package top.yzhelp.enjoyinformation.controller;

import com.alibaba.fastjson.JSONObject;
import io.github.yedaxia.apidocs.ApiDoc;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.yzhelp.enjoyinformation.controller.res.Result;

/**
 * @author 码之泪殇 GitHub: https://github.com/gongsir0630
 * @date 2021/3/19 15:15
 * 你的指尖,拥有改变世界的力量
 * @description 测试接口
 */
@RestController
@ApiDoc(result = JSONObject.class)
public class HelloController {

    /**
     * 测试接口
     * @description 可通过 http://ip:port{/,/hello}访问本方法
     * @return string
     */
    @GetMapping(path = {"","/","hello"})
    public Result<String> hello() {
        return Result.success("hello EnjoyInformationApplication");
    }
}
